package com.xzl.org.learning_situation_analysis.dao;

import com.xzl.org.learning_situation_analysis.entity.Question;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author 夏智力
 * @FileName QuestionMapper
 * @date 2022/4/12 21:42
 * @Software: IntelliJ IDEA
 */
@Mapper
public interface QuestionMapper {

    //根据试卷id查询题目
    List<Question> selectByPaperId(int paperId);

    //查询一张试卷中某种题型的题目
    List<Question> selectByPaperIdAndTypeId(int paperId, int typeId);

    int insertQuestion(Question question);
}
